<template>
  <div class="home-list">
    <ul class="item">
      <li v-for="item in lists" :key="item.gid">
        <!-- <div>
            <span>{{item.id}}</span>
          </div> -->
        <img :src="item.ItemImage" alt="" />
        <div class="item-context">
          <span>{{ item.title }}</span>
          <div>
            <i class="el-icon-star-off"></i>
            <span>{{ item.price }}</span>
          </div>
        </div>
        <div>
          <a :href="item.actorAvatar">点击跳转到商品详情页</a>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "HomeList",
  props: {
    lists: {
      type: Array,
      default() {
        return [
          {
            ItemImage: require("@/assets/home_images/scroll_imgs/10.jpg"),
            title: "蓝帽子小可爱",
            type: "pop1",
          },
          {
            ItemImage: require("@/assets/home_images/scroll_imgs/11.jpg"),
            link: "https://cn.bing.com/?FORM=BEHPTB",
            title: "三根毛小白",
            type: "pop2",
          },
        ];
      },
    },
  },
  methods: {},
};
</script>

<style scoped>
img {
  width: 150px;
  

}
.home-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: center;
}
.item {
  flex: 1;
}
ul li {
  display: inline-block;
  margin: 10px auto;
  margin-top: 0;
}
.item-context {
  width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>>

</style>